﻿using System;

class FirTree
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        int dotCount = n - 2; // - 1 
        int starCount = 3; // + 2

        string firstLine = new String('.', dotCount) + '*' + new String('.', dotCount);
        dotCount--;
        Console.WriteLine(firstLine);

        for (int i = 1; i <= n - 2; i++)
        {
            Console.Write(new String('.', dotCount));
            Console.Write(new String('*', starCount));
            Console.Write(new String('.', dotCount));
            dotCount--;
            starCount += 2;
            Console.WriteLine();
        }
        Console.WriteLine(firstLine);
    }
}